package cn.tedu.mall.order.mapper;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OmsOrderMapper {
    //1.新增订单
    void insertOrder(OmsOrder omsOrder);
    //2.查询订单
    List<OrderListVO> selectOrdersByTime(OrderListTimeDTO orderListTimeDTO);
    //3.动态修改订单的sql，可以根据给定的id值，修改其他列
    void updateOrderById(OmsOrder omsOrder);
}
